#include #include #include using namespace std; typedef struct Vat { float kichthuoc; int check; }; void SapXep(Vat a[100], int n) { for(int i=0;i a[j].kichthuoc) { Vat tam=a[i]; a[i]=a[j]; a[j]=tam; } } void Xuat(Vat a[100], int n) { for(int i=0;i>n; cout<<"\nNhap kich thuoc cua tui T: ";cin>>T; cout<<"\n Hay nhap kich thuoc san pham tung san pham"; cout<<"\n (Luu y chi nhap vao kich thuoc san pham tu 1 den "<>a[i].kichthuoc; a[i].check=0; } Xuat(a,n); cout<<"\n"; SapXep(a,n); cout<<"\nCac San Pham sau khi sap xep giam dan theo kich thuoc la: "; Xuat(a,n); int dem=0; for(int i=0;i